{extend name='admin@public/content'}

{block name="content"}
<form autocomplete="off" onsubmit="return false;" action="{:request()->url()}" data-auto="true" method="post" class='form-horizontal layui-form padding-top-20'>
    <div class="form-group">
        <label class="col-sm-2 control-label">案件名称</label>
        <div class='col-sm-8'>
            <input  name="name" value='{$vo.name|default=""}'   title="案件名称" placeholder="案件名称" class="layui-input">
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">推荐来源</label>
        <div class='col-sm-8'>
            <input readonly="readonly" disabled="disabled" name="" value='{$vo.knowid|cate}'  title="推荐来源" placeholder="推荐来源" class="layui-input layui-bg-gray">
        </div>
    </div>


    <div class="form-group">
        <label class="col-sm-2 control-label">所属会员</label>
        <div class='col-sm-8'>
            <input readonly="readonly" disabled="disabled" name="" value='{$vo.username|default=""}'   title="所属会员" placeholder="所属会员" class="layui-input layui-bg-gray">
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">所属类别</label>
        <div class='col-sm-8'>
            <select name='cateid' class='layui-select full-width' lay-ignore>
                <!--{foreach $data as $menu}-->
                <!--{eq name='menu.id' value='$vo.cateid|default=0'}-->
                <option selected value='{$menu.id}'>{$menu.title}</option>
                <!--{else}-->
                <option value='{$menu.id}'>{$menu.title}</option>
                <!--{/eq}-->
                <!--{/foreach}-->
            </select>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">法院</label>
        <div class='col-sm-8'>
            <input autofocus name="court" value='{$vo.court|default=""}'   title="法院" placeholder="法院" class="layui-input">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">原告</label>
        <div class='col-sm-8'>
            <input autofocus name="yname" value='{$vo.yname|default=""}'   title="原告" placeholder="原告" class="layui-input">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">被告</label>
        <div class='col-sm-8'>
            <input autofocus name="bname" value='{$vo.bname|default=""}'   title="被告" placeholder="被告" class="layui-input">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label label-required">文件</label>
        <div class='col-sm-8'>
            <table class="layui-table background-item margin-none" lay-size="sm" lay-skin="nob">
                <thead>
                <tr>
                    <td>图片</td>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td class="text-top">
                        <input type="hidden" name="thumb" value="{$vo.thumb|default=''}">
                        <script>$('[name=thumb]').uploadMultipleImage()</script>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">涉嫌金额</label>
        <div class='col-sm-8'>
            <input autofocus name="money" value='{$vo.money|default=""}'  pattern="^[0-9]{1,}$"  required="required"  title="涉嫌金额" placeholder="涉嫌金额" class="layui-input">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">起诉地点</label>
        <div class='col-sm-8'>
            <input autofocus name="address" value='{$vo.address|default=""}'   title="起诉地点" placeholder="起诉地点" class="layui-input">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">希望找哪里的律师</label>
        <div class='col-sm-8'>
            <input autofocus name="hope" value='{$vo.hope|default=""}'   title="希望找哪里的律师" placeholder="希望找哪里的律师" class="layui-input">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">会员评价</label>
        <div class='col-sm-8'>
            <input autofocus name="evaluate" value='{$vo.evaluate|default=""}'   title="会员评价" placeholder="会员评价" class="layui-input">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">案件描述</label>
        <div class='col-sm-8'>
            <textarea placeholder="案件描述" title="案件描述" class="layui-textarea" name="describe">{$vo.describe|default=""}</textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">内容</label>
        <div class='col-sm-8'>
            <textarea name="content">{$vo.content|default=''|raw}</textarea>
        </div>
    </div>

    <div class="hr-line-dashed"></div>

    <div class="col-sm-7 col-sm-offset-2">
        <div class="layui-form-item text-center">
            {if !empty($vo.id)}<input type="hidden" name="id" value="{$vo.id}">{/if}
            <button class="layui-btn" type="submit">保存配置</button>
            <button class="layui-btn layui-btn-danger" type='button' onclick="window.history.back()">取消编辑</button>
        </div>
    </div>

    <script>window.form.render();</script>

    <script>
        /*! 实例富文本编辑器  */
        require(['ckeditor'], function () {
            window.createEditor('[name="content"]', {height: 500});
        });
    </script>
</form>
{/block}